import createAPI from 'shared/utils/createAPI';

export default {
  getDataSources: () => createAPI.get('datasource/all'),
  getFormData: id => createAPI.get(`datasource`, {id}),
  delete: id => createAPI.delete(`datasource`, {id}),
  postForm: formData => createAPI.post('datasource', formData),
  putForm: formData => createAPI.put('datasource', formData),

};
